<?php
namespace Admin\Model;
use Think\Model;
class goods_typeModel extends Model{
	public function fl($p=0,$lv=0){
		$t=array();
		foreach($this->select()as $k=>$v){
			if($v['pid']==$p){
				$v['lv']=$lv;
				$t[]=$vl;
				$t=array_merge($t,$this->getfl($v['id'],$lv+1));
			}
		}
		return $t;
	}
}